package com.szrt.day20170414.ch05;

/**
 * CTRL+T
 * @author scott-13926583118
 * 2017年4月14日
 *
 */
public /*final*/ abstract class Car {
	
	
	
	private String name;
	
	
	private int price;


	public Car(String name, int price) {
		System.out.println("记录日志...");
		this.name = name;
		this.price = price;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getPrice() {
		return price;
	}


	public void setPrice(int price) {
		this.price = price;
	}


	/**
	 * 当家不做主的方法
	 */
	/*private*/ abstract /*final*/ void run();
	
	/*public void init(String carName, int carPrice){
		System.out.println("记录日志...");
		this.setName(carName);
		setPrice(carPrice);
	}*/
	
	

}
